package com.augrain.microframework.trace.instrument.feign;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * trace追踪feign自动装配
 *
 * @author biaoy
 * @since 2021/08/21
 */
@Configuration
@ConditionalOnClass(name = {"org.springframework.cloud.openfeign.FeignClient"})
public class TraceFeignAutoConfiguration {

    @Bean
    public TraceFeignInterceptor traceFeignInterceptor() {
        return new TraceFeignInterceptor();
    }
}
